c# get property using string

69

c# get property using string -

 public static object GetPropValue(object src, string propName)
 {
     return src.GetType().GetProperty(propName).GetValue(src, null);
 }

Comments

Submit
0 Comments